package adv2;

import java.util.*;

public class MyColection<K extends Collection<Double>, F extends Collection<Double>> {

	public void hebing(K k, F f) {

		k.addAll(f);
		// return k;
	}

	public static void main(String[] args) {
		List<Double> l = new ArrayList<Double>();
		l.add(34.5);
		l.add(5.3);
		l.add(9.9);
		Set<Double> s = new HashSet<Double>();
		s.add(100.4);
		s.add(100.5);
		s.add(100.6);

		MyColection<List<Double>, Set<Double>> mc = new MyColection<List<Double>, Set<Double>>();
		mc.hebing(l, s);
		System.out.println(l);
	}
}
